const fs = require('fs')
const rs = fs.createReadStream('./2.txt', 'utf8')//可读流
const ws = fs.createWriteStream('./1.txt', 'utf8')//可写流
//把可读流中的内容一点点往可写流中写入
rs.pipe(ws)